const express = require('express')
const router = express.Router()
const Class = require('../../models/class')

//获取分类列表
//@GET /vueShow/class/getAll
router.get('/getAll', (req, res) => {
  Class.find({})
    .then(doc => res.send(doc))
    .catch(err => res.send(err.message))
})


module.exports = router